﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddTaskPlan.aspx.cs" Inherits="LDSP.UI.EnterpriseAdmin.AddTaskPlan" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="0">
    <title>任务计划编辑</title>
    <link type="text/css" href="../../../styles/bg.css" rel="Stylesheet" />
    <script type="text/javascript" src="../../../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../../../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../../../Scripts/Common.js"></script>
    <script type="text/javascript" src="../../../Scripts/calendar.js"></script>
    <base target="_self" />
    <script language="javascript" type="text/javascript">
        function copyData() {
            var copyText = document.getElementById("lblReference").innerText;
            window.clipboardData.setData("Text", copyText);
        }
    </script>
    <style type="text/css">
        .style1
        {
            text-align: left;
            padding-left: 10px;
            width: 15%;
            height: 29px;
        }
        .style5
        {
            text-align: left;
            vertical-align: top;
            width: 71%;
        }
        .itemCtrl_ThisPage
        {
            width: 92%;
        }
        .itemCtrlMulti_ThisPage
        {
            width: 92%;
            height: 60px;
        }
        .style6
        {
            text-align: left;
            vertical-align: middle;
            width: 62%;
        }
    </style>
</head>
<body>
    <!--        function OnChange() {
            var chbNeedNotifyUser = document.getElementById("txtEmail");
            var txtEmailList = document.getElementById("chbNeedNotify");

            if (chbNeedNotifyUser.checked) {
                txtEmailList.setAttribute("readOnly", 'true');
            } else {
                txtEmailList.removeAttribute("readOnly");
            }
        }-->
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Services>
            <asp:ServiceReference Path="~/Web Service/LDSPService.asmx" />
        </Services>
    </asp:ScriptManager>
    <asp:UpdatePanel ID="pnl_script" runat="server" RenderMode="Inline">
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <img src="../../../images/loadding.gif" />
            数据加载中，请稍候...
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="mngTitle">
        <span class="mngEmphasis">任务计划</span>编辑<asp:Label ID="lbl_op" runat="server" Text=""></asp:Label>
    </div>
    <div>
        <table class="mngDetail">
            <tr>
                <td class="itemLabel">
                    任务名称：
                </td>
                <td class="style6">
                    <asp:TextBox ID="txt_name" runat="server" CssClass="itemCtrl_ThisPage"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_name"
                        ErrorMessage="必选项*" Font-Size="9pt" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <td class="style5">
                    <strong>参考资料： </strong>
                </td>
            </tr>
            <tr id="td_subdiary" runat="server">
                <td class="style1">
                    子公司名称：
                </td>
                <td class="style6">
                    <asp:DropDownList ID="ddl_subdiary" runat="server" CssClass="itemCtrl_ThisPage" OnSelectedIndexChanged="ddl_subdiary_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:CheckBoxList ID="chk_subdiary_list" CssClass="itemCtrl_ThisPage" runat="server">
                    </asp:CheckBoxList>
                </td>
                <td class="style5">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="itemLabel">
                    责任人：
                </td>
                <td class="style6">
                    <asp:TextBox ID="txt_person" runat="server" CssClass="itemCtrl_ThisPage" ReadOnly="True"></asp:TextBox>
                    <asp:Button ID="btn_ResponsibleChoosen" runat="server" OnClick="btn_ResponsibleChoosen_Click"
                        Text="..." CausesValidation="false" />
                </td>
                <td class="style5" rowspan="10">
                    <div style="border-width: thin; border-style: solid; width: auto; height: 387px;
                        overflow: scroll;">
                    <asp:Label ID="lblReference" runat="server"></asp:Label></div>
                    <input id="copy" type="button" title="复制文字" value="复制文字" onclick="copyData()" />
                </td>
            </tr>
            <tr>
                <td class="itemLabel">
                    执行部门/人员：
                </td>
                <td class="style6">
                    <asp:TextBox ID="txt_department" runat="server" CssClass="itemCtrl_ThisPage"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="itemLabel">
                    到期时间：
                </td>
                <td class="style6">
                    <asp:TextBox ID="txt_expiredDT" runat="server" CssClass="itemCtrl_ThisPage" onclick="HS_setDate(this)"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="itemLabel">
                    项目进度概述：
                </td>
                <td class="style6">
                    <asp:TextBox ID="txt_progress" runat="server" CssClass="itemCtrl_ThisPage" Height="100"
                        TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="itemLabel">
                    状态：
                </td>
                <td class="style6">
                    <asp:DropDownList ID="ddlStatus" runat="server" Style="margin-bottom: 0px" Width="103px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="itemLabel">
                    备注：
                </td>
                <td class="style6">
                    <asp:TextBox ID="txt_comment" TextMode="MultiLine" runat="server" CssClass="itemCtrlMulti_ThisPage"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="itemLabel">
                </td>
                <td class="style6">
                    <!--onclick="javascript:OnChange()"-->
                    <input type="checkbox" id="chbNeedNotify" runat="server" />发邮件通知其它成员
                </td>
            </tr>
            <tr>
                <td class="itemLabel">
                    邮箱:
                </td>
                <td class="style6">
                    <asp:TextBox ID="txt_email" runat="server" CssClass="itemCtrl_ThisPage"></asp:TextBox>
                    <cc1:AutoCompleteExtender TargetControlID="txt_email" ServicePath="~/Web Service/LDSPService.asmx"
                        ServiceMethod="GetEmailAutoCompleteList" MinimumPrefixLength="1" EnableCaching="true"
                        UseContextKey="true" CompletionInterval="10" ID="AutoCompleteExtender1" runat="server">
                    </cc1:AutoCompleteExtender>
                    <br />
                    (多个邮箱之间请用分号隔开)
                </td>
            </tr>
            <tr>
                <td class="itemLabel">
                </td>
                <td class="style6">
                    <asp:Button ID="btn_ok" runat="server" Text="确定" CssClass="mngBtn" OnClick="btn_ok_Click" />
                    <asp:Button ID="btn_add" runat="server" Text="新增" CausesValidation="False" CssClass="mngBtn"
                        OnClick="btn_add_Click" />
                    <input type="button" value="关闭" onclick="javascript:window.close()" class="mngBtn" />
                </td>
            </tr>
        </table>
    </div>
    <asp:HiddenField ID="hdPlanName" runat="server" />
    <asp:HiddenField ID="hdPerson" runat="server" />
    <asp:HiddenField ID="hdProgress" runat="server" />
    <asp:HiddenField ID="hdStatus" runat="server" />
    <asp:HiddenField ID="hdComment" runat="server" />
    <asp:HiddenField ID="hdDepartment" runat="server" />
    <asp:HiddenField ID="hdExpireDT" runat="server" />
    </form>
</body>
</html>
